package com.woniu.vo;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ResumeHotSort implements Comparable<ResumeHotSort>{

    private Integer resumeId;
    private Integer visitCount;
    private String status;
    @Override
    public int compareTo(ResumeHotSort o) {

        if(!"平台推送".equals(o.getStatus())&&"平台推送".equals(this.getStatus())){
            return 1;
        }else if("平台推送".equals(o.getStatus())&&!"平台推送".equals(this.getStatus())){
            return -1;
        }else{
            return o.visitCount-this.visitCount;
        }
    }

}
